package algocasts;

public class P15_missNumber {
    public int missNumber(int[] nums) {
        int result = nums.length;
        for(int i = 0; i < nums.length; i++) result = result ^ i ^ nums[i];
        return result;
    }
}
